<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Vue</title>
		<link rel="stylesheet" href="index.css" />
		<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
	</head>
	<body>
		
		<div id="app">
			
  			<my-btn></my-btn>
  			<my-btn></my-btn>
  			
		</div>
		
		<!--此处为组件容器，用在展示在id=app的区域-->
	
		<script type="text/template" id="my_btn">
				<div>
					<button @click="total()">点击了{{count}}</button>
				</div>	
		</script>
		
	
		
	
		
	</body>
</html>
<script src="./index.js"></script>
